//
//  YYQRControllerExtension.swift
//  YYProject
//
//  Created by FishWithoutWings on 2018/1/8.
//  Copyright © 2018年 陆文宇. All rights reserved.
//

import UIKit

extension YYQRController {
    //处理扫描结果
    func handleResult(_ result: String) {
        YYRouter.currentVC.navigationController?.popViewController(animated: false)
        delay(0.01) {
            if result.hasPrefix("http") {
                YYRouter.pushToWebVC(url: result)
            }
        }
    }
}
